From: Ewan Mellor Date: Fri, 23 Mar 2007 17:42:08 +0000 (+0000) Subject: Ignore exceptions in the get_all_methods call. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15277^2~14 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=d043ecebc5089e7a393b35ca81dce253d257dd70;p=xen.git Ignore exceptions in the get_all_methods call. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 2f18ae2304..35930a529a 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -579,9 +579,12 @@ class Shell(cmd.Cmd): cmd.Cmd.__init__(self) self.prompt = "xm> " if serverType == SERVER_XEN_API: - res = server.xenapi._UNSUPPORTED_list_all_methods() - for f in res: - setattr(Shell, 'do_' + f + ' ', self.default) + try: + res = server.xenapi._UNSUPPORTED_list_all_methods() + for f in res: + setattr(Shell, 'do_' + f + ' ', self.default) + except: + pass def preloop(self): cmd.Cmd.preloop(self)